package com.work.bean;


import java.util.Date;

public class Message {
private int id;
private String title;
private String content;
private int s_id;
private int t_id;
private Date time;
private int state;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getS_id() {
        return s_id;
    }

    public void setS_id(int s_id) {
        this.s_id = s_id;
    }

    public int getT_id() {
        return t_id;
    }

    public void setT_id(int t_id) {
        this.t_id = t_id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public Message() {
    }

    public Message(int id, String title, String content, int s_id, int t_id, Date time, int state) {
        this.id = id;
        this.title = title;
        this.content = content;
        this.s_id = s_id;
        this.t_id = t_id;
        this.time = time;
        this.state = state;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", s_id=" + s_id +
                ", t_id=" + t_id +
                ", time=" + time +
                ", state=" + state +
                '}';
    }
}
